<extend name="Index/index" />
<block name="nav1">
    <div class="page-content">
        <div class="page-header">
            <h1>
                角色管理
                <small>
                    <i class="icon-double-angle-right"></i>
                     查看
                </small>
            </h1>
        </div><!-- /.page-header -->
    </div>
</block>
<block name="admin">
    <div class="pull-left col-md-12">
        <h1 class="text-center">角色管理</h1>
        <hr>
        <table class="table h3">
            <tr class="blue">
                <th> </th>
                <th>ID</th>
                <th>角色名</th>
                <th>说明</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <empty name="list">
            <tr>
                <td class="text-center red h1" colspan="6">暂无数据</td>
            </tr>
            <else />
            <volist name="list" id="v">
                <tr>
                    <td></td>
                    <td><{$v['id']}></td>
                    <td><{$v['aname']}></td>
                    <td><empty name="v['remark']">无<else /><{$v['remark']}></empty></td>
                    <td>
                        <if  condition="$v['status'] eq 1"><a href="<{:U('Actor/status', array('id'=>$v['id'], 'status'=>$v['status']))}>" class="btn-sm btn-success">启用</a><else /><a href="<{:U('Actor/status', array('id'=>$v['id'], 'status'=>$v['status']))}>" class="btn-sm btn-warning">禁用</a></if>
                    </td>
                    <td>
                        <a href="<{:U('Actor/edit', array('id'=>$v['id']))}>" class="btn-sm btn-info">编辑</a>
                        <a href="<{:U('Actor/alloIndex', array('id'=>$v['id'], 'aname'=>$v['aname']))}>" class="btn-sm btn-success">分配权限</a>
                        <a href="<{:U('Actor/del', array('id'=>$v['id']))}>" class="btn-sm btn-danger">删除</a>
                    </td>
                </tr>
            </volist>
            </empty>
        </table>
    </div>

</block>
